// import requestService from '@/config/requestConfig'

export function apiGetPartinerInfo(params: any) {
  return requestService.request({ method: 'get', url: `api/pzPartner/getInfo?id=${params.id}` })
}

export function apiGetDefaultAddress() {
  return requestService.request({ method: 'get', url: 'api/userAddress/myDefault' })
}

export function apiGetPartnerFilterTreeData(params?: any) {
  return requestService.request({ method: 'get', url: 'api/pzCommon/categoryTree', params })
}

export function apiPublishNeeds(params: any) {
  return requestService.request({ method: 'post', url: 'api/pzTask/publish', data: params })
}

// 1.需求发布
export const apiPublishNeedsNew = (data) => uni.http({
  url: 'pzTaskOrder/publish',
  method: 'post',
  data,
  requestType:'company',
  noAuth: false
})